Why can't I delete a user?

You must be an account owner or admin in order to have the permissions to add/remove users.

If you have the correct permissions to remove a user but are still running into issues, it is likely because of one or more of the following:

  • Open incidents assigned to the user—these will need to be resolved before removing the user
  • The user is currently on a schedule (or schedules)—they will need to be removed from these before they can be deleted
  • The user is directly on an escalation policy—they will need to be removed from the policy before they can be deleted

About 14 months ago I ran into a similar problem (and I was the admin). The solution I came up with was to delete the user through the API call.

Hope this helps.

1 Like

“About 14 months ago I ran into a similar problem (and I was the admin). The solution I came up with was to delete the user through the API call.”

@JeremiahWJenkins
Do you mind showing how you did it? Even via the API, it looks like mine errors if they meet one of the 3 items above.

Hi @JoshuaWood,

That’s unavoidable - if it meets any of those three conditions it will block the deletion until they’re removed.

Having said that, there is a script on the PagerDuty public GitHub which facilitates removal from all of those items:

Maybe that’ll help you achieve what you want in a single script? Personally if I encounter any of the above blockers I will ask the team responsible for that Schedule to clean it up themselves before I remove the user.

Cheers,
@simonfiddaman